package com.xb.mapper;

import com.xb.entity.MedicalRecord;
import com.xb.entity.Register;

import java.util.List;

/**
 * entityMapper接口
 */
//@Mapper
public interface MedicalRecordMapper {

    public MedicalRecord selectMedicalRecordById(Integer patientId);

    public MedicalRecord selectMedicalRecordByPrescriptionNum(String prescriptionNum);

    public MedicalRecord selectMedicalRecordByRegister(Register register);

    public MedicalRecord selectMedicalRecordByRegisterId(int registerId);

    public MedicalRecord checkMedicalRecordGetCardIdInfo(int cardId);

    /**
     * 查询entity列表
     *
     * @param medicalRecord entity
     * @return entity集合
     */
    public List<MedicalRecord> selectMedicalRecordList(MedicalRecord medicalRecord);

    /**
     * 新增entity
     *
     * @param medicalRecord entity
     * @return 结果
     */
    public int insertMedicalRecord(MedicalRecord medicalRecord);

    /**
     * 修改entity
     *
     * @param medicalRecord entity
     * @return 结果
     */
    public int updateMedicalRecord(MedicalRecord medicalRecord);


}
